<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<style type="text/css">
.ui-datepicker {
	font-size: 13px;
	width: 180px;
}
.ui-datepicker select.ui-datepicker-month {
	width: 30%;
	font-size: 11px;
}
.ui-datepicker select.ui-datepicker-year {
	width: 40%;
	font-size: 11px;
}
</style>
<script type="text/javascript">
$(function() {
	$("#delImg").click(function() {
		if(confirm("삭제하시겠습니까?")==false){
			return;
		}
		location.href = "${initParam.root}admin/movie_delete.do?movieNo=${requestScope.mContentMap.movieContent.movieNo }";
	});
	$("#updateImg").click(function() {
		location.href = "${initParam.root}admin/movie_updateView.do?movieNo=${requestScope.mContentMap.movieContent.movieNo }";
	});
});//ready	
</script>
<h3>영화 - 상세정보</h3>
<hr align="left" width="150">
<center>
<table class="movieContent">
	<tr>
		<td width="150px" rowspan="4"><img src="${initParam.root }${requestScope.mContentMap.movieContent.posterPath }" width="150px" height="200px"></td>
		<td width="70">영화 제목</td>
		<td>${requestScope.mContentMap.movieContent.title }</td>
	</tr>
	<tr>
		<td>장르</td>
		<td>${requestScope.mContentMap.movieContent.genre }</td>
	</tr>
	<tr>
		<td>스토리</td><td align="left">${requestScope.mContentMap.movieContent.story }</td>
	</tr>
	<tr>
		<td>수상정보</td><td>${requestScope.mContentMap.awardContent }</td>
	</tr>
	<tr>
		<td colspan="3">예고편</td>
	</tr>
	<tr>
		<td colspan="3">
			<iframe width="500" height="300" src="//www.youtube.com/embed/${requestScope.mContentMap.movieContent.trailerPath }" frameborder="0" allowfullscreen></iframe>
		</td>
	</tr>
	<tr>
		<td align="center" colspan="3">
			<a href="${initParam.root}admin/movieList.do"><img src="${initParam.root}/img/list_btn.jpg"></a>
			<img id="updateImg" src="${initParam.root}/img/modify_btn.jpg">
			<img id="delImg"src="${initParam.root}/img/delete_btn.jpg">
		</td>
	</tr>
</table>
</center>